import request from '../utils/request';
//轮播图
export const getSlideList = query => {
	return request({
		url: '/manage/home/slideList',
		method: 'post',
		data: query
	})
}
export const getSlideDetail = query => {
	return request({
		url: '/manage/home/slideDetail',
		method: 'post',
		data: query
	})
}
export const deleteSlide = data => {
	return request({
		url: '/manage/home/slideDelete',
		method: 'post',
		data: data
	})
}
//获取管理员个人信息
export const getUserInfo = query => {
	return request({
		url: '/manage/Index/userInfo',
		method: 'post',
		data: query
	})
}
//获取用户列表
export const getUserList = query => {
	return request({
		url: '/manage/User/userList',
		method: 'post',
		data: query
	})
}
export const getUserDetail = query => {
	return request({
		url: '/manage/User/userDetail',
		method: 'post',
		data: query
	})
}
export const userBlock = query => {
	return request({
		url: '/manage/User/userBlock',
		method: 'post',
		data: query
	})
}
//获取管理员列表
export const getAdminList = query => {
	return request({
		url: '/manage/Admin/adminList',
		method: 'post',
		data: query
	})
}
export const getAdminDetail = query => {
	return request({
		url: '/manage/Admin/adminDetail',
		method: 'post',
		data: query
	})
}
export const adminAdd = query => {
	return request({
		url: '/manage/Admin/adminAdd',
		method: 'post',
		data: query
	})
}
export const adminMod = query => {
	return request({
		url: '/manage/Admin/adminMod',
		method: 'post',
		data: query
	})
}
export const adminDelete = query => {
	return request({
		url: '/manage/Admin/adminDelete',
		method: 'post',
		data: query
	})
}
export const adminBlock = query => {
	return request({
		url: '/manage/Admin/adminBlock',
		method: 'post',
		data: query
	})
}
//获取角色列表
export const getRoleList = query => {
	return request({
		url: '/manage/Admin/roleList',
		method: 'post',
		data: query
	})
}
export const roleDetail = query => {
	return request({
		url: '/manage/Admin/roleDetail',
		method: 'post',
		data: query
	})
}
export const roleAdd = query => {
	return request({
		url: '/manage/Admin/roleAdd',
		method: 'post',
		data: query
	})
}
export const roleDelete = query => {
	return request({
		url: '/manage/Admin/roleDelete',
		method: 'post',
		data: query
	})
}
export const roleMod = query => {
	return request({
		url: '/manage/Admin/roleMod',
		method: 'post',
		data: query
	})
}
export const roleRouteMod = query => {
	return request({
		url: '/manage/Admin/roleRouteMod',
		method: 'post',
		data: query
	})
}
//获取权限列表
export const getNodeList = query => {
	return request({
		url: '/manage/Admin/nodeList',
		method: 'post',
		data: query
	})
}
export const nodeAdd = query => {
	return request({
		url: '/manage/Admin/nodeAdd',
		method: 'post',
		data: query
	})
}
export const nodeDelete = query => {
	return request({
		url: '/manage/Admin/nodeDelete',
		method: 'post',
		data: query
	})
}
export const nodeMod = query => {
	return request({
		url: '/manage/Admin/nodeMod',
		method: 'post',
		data: query
	})
}

//获取菜单列表
export const getMenuList = query => {
	return request({
		url: '/manage/Admin/menuList',
		method: 'post',
		data: query
	})
}
export const menuAdd = query => {
	return request({
		url: '/manage/Admin/menuAdd',
		method: 'post',
		data: query
	})
}
export const menuDelete = query => {
	return request({
		url: '/manage/Admin/menuDelete',
		method: 'post',
		data: query
	})
}
export const menuMod = query => {
	return request({
		url: '/manage/Admin/menuMod',
		method: 'post',
		data: query
	})
}
//获取我的菜单
export const getMyMenu = query => {
	return request({
		url: '/manage/Index/getMyMenu',
		method: 'post',
		data: query
	})
}

